#include <stdlib.h>
#include <stdio.h>
#include "Mouse.h"

Mouse::Mouse()
{
	position = Vector2D(0,0);
	lastPosition = position;
}
Mouse::~Mouse()
{
}
	
void Mouse::SetPosition(float x, float y, Vector2D cameraSize)
{
	//lastPosition = position;
	position = Vector2D(x, y);// - cameraSize;
}
Vector2D Mouse::GetPosition()
{
	return position;
}
void Mouse::Think()
{
	lastPosition = position;
	shift = Vector2D(0,0);
}
void Mouse::AddShift(Vector2D shift)
{
	this->shift = this->shift + shift;
}
Vector2D Mouse::GetDeltaPosition()
{
	Vector2D delta =  position - lastPosition + shift;
	 
	return delta;
}
